<template>
	<view> 
		新闻详情页面{{id}}
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:0
			}
		},
		onLoad(opption) {
			 
			this.id=opption.id;
			
			//throw Error("抛出异常")
		 
			
		},
		onBackPress(){
			 console.log("onBackPress");
		},
		onNavigationBarSearchInputClicked(){
			 console.log("你点击了搜索框");
		},
		onNavigationBarSearchInputConfirmed(e){
			console.log(e);
					 console.log("点击键盘搜索按钮");
		},
		onNavigationBarSearchInputChanged(e){
			const {text}=e;
			console.log(text);
			 console.log("搜索框输入");
		},
		onNavigationBarButtonTap(e)
		  {
			  
			  const {index}=e;
			  if(index==0){
				  console.log("你点击了分享按钮");
			  }
			  if(index==1){
			  				  console.log("你点击了添加按钮");
			  }
			  console.log(e);
			console.log("页面生命周期函数-onNavigationBarButtonTap");
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
